package com.example.function.sys.model.pojo;


import com.example.common.support.ApplicationContextProvider;
import com.example.function.sys.model.one.SysPost;
import com.example.function.sys.service.ISysPostService;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * Description: <SysPostPojo vo>. <br>
 * <p>
 * generate time:2021-7-22 10:47:02
 *
 * @author hanqf
 * @version V1.0
 */
@Data
public class SysPostPojo implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 岗位id
     */
    private Long id;


    /*
     * 岗位名称
     */
    private String postName;


    /**
     * 实体对象复制到数据对象
     */
    public static SysPostPojo wrapper(SysPost sysPost) {
        SysPostPojo sysPostPojo = new SysPostPojo();
        BeanUtils.copyProperties(sysPost, sysPostPojo);
        final ISysPostService sysPostService = (ISysPostService) ApplicationContextProvider.getBean("sysPostService");

        return sysPostPojo;
    }

}



